package systemController

import (
	"net/http"
	"strings"
	"wisdomCoach/utils"

	"github.com/gin-gonic/gin"
)

func GetCaptchaImage(cxt *gin.Context) {
	keys, base64 := utils.CreateCodePhoto()
	strings := strings.Split(base64, ",")
	cxt.JSON(http.StatusOK, gin.H{
		"msg":            "操作成功",
		"img":            strings[1],
		"code":           200,
		"captchaEnabled": true,
		"uuid":           keys,
	})
}
